package com.smart.service;

import com.smart.dao.Calenderdao;
import com.smart.domain.Calender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CalenderServiceImp implements CalenderService {

    public void setCalenderDao(Calenderdao calenderDao) {
        this.calenderdao= calenderDao;
    }
    @Autowired
    Calenderdao calenderdao;

    public int addcal(Calender calender) {
        return calenderdao.addcalender(calender);
    }
    public int deletecal(Calender calender) {
        return calenderdao.deletecalender(calender);
    }

    public int updatecal(Calender calender) {
        return calenderdao.updatecalender(calender);
    }

    public void querycal(Calender calender) {
        calenderdao.querycalender(calender);
    }
    public void querylistcal() {
        calenderdao.querycalenderlist();
    }
    public void querylistcal(Calender calender){ }

}
